package com.suixinsanren.design.decoration.demo04;

import org.junit.Test;

import java.io.*;

public class LowerCaseInputStreamTestDrive {

    @Test
    public void test01() {
        int c;
        String FILE_DIF = "D:\\text.txt";
        try (InputStream in = new LowerCaseInputStream(new BufferedInputStream(new FileInputStream(FILE_DIF)))) {
            while ((c = in.read()) >= 0) {
                System.out.print((char) c);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
